<template>
  <div class="test-message">
    <el-button @click="showMessage">测试消息提示</el-button>
  </div>
</template>

<script setup>
import { ElMessage } from 'element-plus'

function showMessage() {
  ElMessage.success('这是一条成功消息')
}
</script>

<style scoped>
.test-message {
  padding: 20px;
}
</style>